package com.heima.apis.ap_user;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-user", contextId = "user")
public interface IApUserClient {

    /**
     * 根据 userId 获取用户信息
     * @param userId
     * @return
     */
    @PostMapping("/api/v1/login/info")
    ResponseResult getUserInfo(@RequestBody Integer userId);
}
